package com.design.pattern.visitor.user;

import java.util.Date;

/**
 * 女性
 */
public class Female extends User implements UserInfo{
    /**
     * 区分男女
     */
    private Date PhysiologicalPeriod;//第一次生理期时间

    @Override
    public Object accept(UserInfoReader reader) {
        return reader.visit(this);
    }

    public Date getPhysiologicalPeriod() {
        return PhysiologicalPeriod;
    }

    public void setPhysiologicalPeriod(Date physiologicalPeriod) {
        PhysiologicalPeriod = physiologicalPeriod;
    }
}
